<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}
        <link href="/admin/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <table width="100%" class="table table-striped table-bordered table-hover">
            <thead>
                <tr>
                    <th>顺序</th>
                    <th>名称</th>
                    <th>内容</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {volist name="course" id="vo"}
                <tr>
                    <td>{$vo.cos_sort}</td>
                    <td>{$vo.cos_title}</td>
                    <td>
                        <?php $con = unserialize($vo['cos_content']); ?>
                        <?php foreach($con as $key=>$v){ ?>
                        <div class="label label-primary"><?php echo $v ?></div>
                        <?php } ?>
                    </td>
                    <td>
                        {switch name="vo.cos_state"}
                        {case value="0"}<div data-id="{$vo.cos_id}" role="state"><span class="fa fa-flag"></span></div>{/case}
                        {case value="1"}<div data-id="{$vo.cos_id}" role="state"><span class="fa fa-power-off"></span></div>{/case}
                        {/switch}
                    </td>
                    <td>
                        <div data-href="/index.php/admin/course/edit.html?id={$vo.cos_id}" type="button" role="newtab" class="btn btn-success btn-xs"  data-text="课程编辑" data-id="course-{$vo.cos_id}">编辑</div>
                        <div data-href="remove.html" data-id="{$vo.cos_id}" role="remove" type="button" class="btn btn-danger btn-xs">删除</div>
                    </td>

                </tr>
                {/volist}
            </tbody>
        </table>
        {include file="public/board"}
        {include file="public/remove"}
        {include file="public/javascript"}
        <!-- <script type="text/javascript" src="/admin/script/common.js"></script> -->
        <script type="text/javascript" src="/admin/script/course/ls.js"></script>
    </body>
</html>
